package com.zf.yichat.mapper;

import com.zf.yichat.dto.PacketReceiveInfoDto;
import com.zf.yichat.dto.PacketReceiveListDto;
import com.zf.yichat.model.Packet;
import com.zf.yichat.utils.response.FsPage;
import com.zf.yichat.utils.response.FsResponse;
import com.zf.yichat.vo.PacketType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 一句话描述功能
 *
 * @author fengsong
 * @date create in 11:23 2019/7/9 2019
 */
public interface PacketApiMapper {

    /**
     * 红包列表
     * @param type
     * @param userId
     * @return
     */
    List<Packet> selectList(@Param("type") Integer type, @Param("userId") Long userId);

    /**
     * 查询红包的已领取情况
     * @param packetId
     * @return
     */
    PacketReceiveInfoDto countReceiveMoney(@Param("packetId") Long packetId);

    /**
     * 查询红包领取详情
     * @param packetId
     * @return
     */
    List<PacketReceiveListDto> selectReceiveList(@Param("packetId") Long packetId);

}
